Ext.define("byb.view.system.AdmLog",{
    extend:"byb.view.BaseManager",
    alias:"widget.sysmgr_logManager",
    requires:["byb.view.grid.system.AdmLog"],
    buildQueryView:function(){
        var me=this;
        return {
            xtype:"form",
            border:false,
            layout:"hbox",
            defaultType:"textfield",
            labelWidth:90,
            items:[{
                xtype: 'datefield',
               	name:'fromDate',
               	fieldLabel:'起始时间',
            	editable: false,
                style:"margin:10px 10px ",
	            labelStyle: "text-align:right;",
                format: 'Y-m-d'
               },{
                xtype: 'datefield',
                name:'toDate',
                fieldLabel:'结束时间',
                editable: false,
                style:"margin:10px 10px ",
	            labelStyle: "text-align:right;",
                format: 'Y-m-d'
               },{
            	 xtype: 'textfield',
                 fieldLabel:'用户名',
 	             labelStyle: "text-align:right;",
            	 name:'uname',
	             style:"margin:10px 10px "
            },{
            	xtype:'button',
                style:"margin:10px 10px ",
            	text:'查询'
            },{
                xtype:"button",
                style:"margin:10px 10px",
                text:"清除",
                action:"clear",
                handler:function(button){
                    var formPanel= button.up("form");
                    formPanel.getForm().reset();
                }
            }]
        }
    },
    buildGridView:function(){
        return {
        	  xtype:"sysmgr_logManagerGrid",
              region:"center",
              frame:false,
              border:false
        }
    },
    doDataLoad: function() {
        var store =  Ext.ComponentQuery.query('sysmgr_logManagerGrid')[0].getStore();
        store.getProxy().setExtraParam("condition", '{}');
        Ext.ComponentQuery.query('sysmgr_logManagerGrid pagingtoolbar')[0].moveFirst();
    }
});
